/**
 * @Author: Yosoo
 * @Date: 2025/5/17 11:30
 * @Description:
 */
package com.sky.mapper;

import com.github.pagehelper.Page;
import com.sky.annotation.AutoFill;
import com.sky.entity.Setmeal;
import com.sky.enumeration.OperationType;
import com.sky.vo.SetmealVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SetmealMapper {


    @AutoFill(OperationType.INSERT)
    void insert(Setmeal setmeal);

    /**
     * 分页查询套餐
     * @Author:     Yosoo
     * @Date:       2025/5/19 09:24
     * @Description:
     * @param setmeal
     * @return
     */
    Page<Setmeal> pageQuery(Setmeal setmeal);

    /**
     * 根据id查询套餐
     * @Author:     Yosoo
     * @Date:       2025/5/19 09:41
     * @Description:
     * @param id
     * @return
     */
    SetmealVO getById(Long id);

    /**
     * 修改套餐
     * @Author:     Yosoo
     * @Date:       2025/5/19 09:53
     * @Description:
     * @param setmeal
     */
    @AutoFill(OperationType.UPDATE)
    void update(Setmeal setmeal);

    /**
     * 批量删除套餐
     * @Author:     Yosoo
     * @Date:       2025/5/19 10:04
     * @Description:
     * @param ids
     */
    void deleteByIds(List<Long> ids);
}
